
<?php
  $pageURL = 'http';
  $pageURL .= "://";

  if ($_SERVER["SERVER_PORT"] != "80")
  {
    $pageURL .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"];
  }
  else
  {
    $pageURL .= $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
  }
//header("location:http://app.gzllhk.com/Demo/wxpay.html");
//return;
if (!strstr($pageURL,"/index.php") || strstr($pageURL, "public")){
    $pageURL = $pageURL."index.php";
    header("location:$pageURL");
    return;
}

//
define('APP_PATH', __DIR__ . '/app/');
define('CONF_PATH',__DIR__ . '/conf/');
// 加载框架引导文件
require __DIR__ . '/thinkphp/start.php';
